package ee.tlnk.service;
 
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import ee.tlnk.dao.OrderDAO;
import ee.tlnk.model.OrderModel;
 
 
/**
 * The Class OrderServiceImpl.
 */
@Service
public class OrderServiceImpl implements OrderService {
 
    /** The order dao. */
    @Autowired
    private OrderDAO orderDAO;
 
    /* (non-Javadoc)
     * @see ee.tlnk.service.OrderService#listOrders()
     */
    @Transactional
    public List<OrderModel> listOrders() {
 
        return orderDAO.listOrder();
    }
 }
